import logging
logger=logging.getLogger(__name__)
from foomodule import foo

def main():
    logging.basicConfig(level=logging.WARNING)
    logger.info("Starting the application")
    logger.debug("Debug message")
    logger.warning("Warning message")
    logger.error("Error message")
    logger.critical("Critical message")
    foo.foo()
    foo.bar()

if __name__ == "__main__":
    main()